<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class con_notificacion extends CI_Controller 
{
 
	public function index()
	{        
            $this->load->view('view_notificacion');		
		
	}
        function imprimir()
        {
                
            $this->load->library('fpdf');
           //define('FPDF_FONTPATH','libraries/fonts/'); //si lo defines en el config, podria ser asi: BASEPATH."application/libraries/font/"
            define('FPDF_FONTPATH',dirname(__FILE__).'/application/libraries/fonts/');
            $this->fpdf->Open();
            $this->fpdf->AddPage();
            
            $pdf = new PDF();  
            
            $pdf->AddPage();
            $pdf->SetFont('Arial','B',16);
            $pdf->Cell(40,10,'¡Hola, Mundo!');




            $this->fpdf->Output('Demandas_Report.pdf','I');
            $this->fpdf->Footer();
        }
}
